This document provides an in-depth explanation of the markdown parsing process used in the Marco Polo’s application. The parsing is implemented using the md-swex
library, which allows for the integration of Svelte components within markdown files.
md-swex
library is used to parse markdown files and convert them into HTML blocks.compile
function of md-swex
is utilized to directly compile markdown content.Remark Math
: Renders LaTeX equations.Remark Footnotes
: Processes footnotes.Custom Wikilink Plugin
: Resolves relative links.Custom Obsidian Image Plugin
: Handles inline images.Custom Remark Mermaid Plugin
: Processes Mermaid diagrams.md-swex
parsing code blocks as inline HTML.mdbase
, attachments
).The markdown parsing component is integral to the Marco Polo’s application, enabling efficient storage and retrieval of markdown content. The use of md-swex
and various plugins ensures robust parsing and rendering capabilities.